package langchain4j.hsl.com.agents;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import reactor.core.publisher.Flux;

import static dev.langchain4j.service.spring.AiServiceWiringMode.EXPLICIT;

/**
 * Created by hsl on 2025/4/25.
 */
@AiService(
        wiringMode = EXPLICIT,
        // chatModel = "qwenChatModel", // 非流式模型
        streamingChatModel = "qwenStreamingChatModel",
        chatMemoryProvider = "chatMemoryProviderHSL",
        tools = "appointmentTools",
        contentRetriever = "contentRetrieverHouAgent"
)
public interface HouAgent {
    @SystemMessage(fromResource = "hou-agent-prompt-template.txt")
    Flux<String> chat(@MemoryId Long memoryId, @UserMessage String userMessage);
}
